import { createRouter, createWebHistory } from "vue-router";

const cesium = [
  {
    path: "/test1",
    component: () => import("@/views/cesium/Test1.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: "/",
      component: () => import("@/views/layout/Home.vue"),
    },
    {
      path: "/:pathMatch(.*)*",
      component: () => import("@/views/layout/NotFound.vue"),
    },
    {
      path: "/graphics",
      component: () => import("@/views/graphics/List.vue"),
    },
    {
      path: "/equations",
      component: () => import("@/views/equations/List.vue"),
    },
    {
      path: "/performances",
      component: () => import("@/views/performances/List.vue"),
    },
    {
      path: "/cesium",
      component: () => import("@/views/cesium/List.vue"),
    },
    ...cesium,
  ],
});

export default router;
